<%@page contentType="text/html"%>
<%@page pageEncoding="UTF-8"%>
<%@taglib uri="http://java.sun.com/jsf/core" prefix="f" %>
<%@taglib uri="http://java.sun.com/jsf/html" prefix="h" %>
<f:view>
    <html>
        <head>
            <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
            <title>Global Image - Editar Permiss&atilde;o</title>
            <link rel="stylesheet" type="text/css" href="/globalimage2/faces/jsfcrud.css" /><%@ include file="/WEB-INF/jspf/AjaxScripts.jspf" %><script type="text/javascript" src="/globalimage2/faces/jsfcrud.js"></script>
        </head>
        <body>
            <%@include file="../../WEB-INF/jspf/header/head.jspf"%>
            <div style="float:left">
                <div style="float:left">
                    <%@include file="../../WEB-INF/jspf/header/menuDinamico.jspf"%>
                </div>
                <div id="div_content">
                    <h:panelGroup id="messagePanel" layout="block">
                        <h:messages errorStyle="color: red" infoStyle="color: green" layout="table"/>
                    </h:panelGroup>
                    <h1>Editar Permiss&atilde;o</h1>
                    <h:form>
                        <div style="direction:ltr">
                            <h:commandLink action="#{permissao.edit}" value="Salvar">
                                <f:param name="jsfcrud.currentPermissao" value="#{jsfcrud_class['entidade.controller.JSF.util.JsfUtil'].jsfcrud_method['getAsConvertedString'][permissao.permissao][permissao.converter].jsfcrud_invoke}"/>
                            </h:commandLink>
                            &nbsp;|&nbsp;
                            <h:commandLink action="#{permissao.detailSetup}" value="Exibir" immediate="true">
                                <f:param name="jsfcrud.currentPermissao" value="#{jsfcrud_class['entidade.controller.JSF.util.JsfUtil'].jsfcrud_method['getAsConvertedString'][permissao.permissao][permissao.converter].jsfcrud_invoke}"/>
                            </h:commandLink>
                            &nbsp;|&nbsp;
                            <h:commandLink action="#{permissao.listSetup}" value="Exibir todos" immediate="true"/>
                            <br />
                        </div>
                        <h:panelGrid columns="2">
                            <h:outputText value="Página:"/>
                            <h:inputText id="pagina" value="#{permissao.permissao.pagina}" maxlength="254" size="50" title="Pagina" required="true" requiredMessage="The pagina field is required." />
                            <h:outputText value="Descrição:"/>
                            <h:inputTextarea rows="4" cols="38" id="descricao" value="#{permissao.permissao.descricao}" title="Descricao" />
                            <h:outputText value="Tipo de Usuários:"/>
                            <h:selectManyListbox id="tipoUsuarioCollection" style="width:330px" value="#{permissao.permissao.jsfcrud_transform[jsfcrud_class['entidade.controller.JSF.util.JsfUtil'].jsfcrud_method.collectionToArray][jsfcrud_class['entidade.controller.JSF.util.JsfUtil'].jsfcrud_method.arrayToList].tipoUsuarioCollection}" title="TipoUsuarioCollection" size="6" converter="#{tipoUsuario.converter}" >
                                <f:selectItems value="#{tipoUsuario.tipoUsuarioItemsAvailableSelectMany}"/>
                            </h:selectManyListbox>
                        </h:panelGrid>
                    </h:form>
                </div>
            </div>
        </body>
    </html>
</f:view>
